package com.ktjy.web.service.impl;

import com.ktjy.web.dao.BannerItemDao;
import com.ktjy.web.dao.BaseDao;
import com.ktjy.web.dao.impl.BannerItemDaoImpl;
import com.ktjy.web.entity.BannerItem;
import com.ktjy.web.service.BannerService;
import com.ktjy.web.util.MyBatisUtil;

import java.util.List;

public class BannerServiceImpl extends BaseDao implements BannerService {

    BannerItemDao dao=new BannerItemDaoImpl();
    @Override
    public List<BannerItem> selectAll() {
        return dao.selectAll();
    }

    @Override
    public BannerItem selectById(int id) {
        return dao.selectById(id);
    }

    @Override
    public int insert(BannerItem bannerItem) {
        return dao.insert(bannerItem);
    }

    @Override
    public int update(BannerItem bannerItem) {
        return dao.update(bannerItem);
    }

    @Override
    public int deleteById(int id) {
        return dao.deleteById(id);
    }

    @Override
    public List<BannerItem> page(int type, int pageNo, int pageSize) {
        return dao.page(type,pageNo,pageSize);
    }

    @Override
    public int count() {
        return dao.count();
    }
}
